﻿using OPSYS_Schematic.BussinessLogic;
using OPSYS_Schematic.UIInfrastructure;

namespace OPSYS_Schematic.Presentation.Parts
{
    [MenuPart(BaseMenu = WorkbenchName.OperationPart, PreviousMenu = WorkbenchName.SpanPart)]
    public class ZoomToolButton : MenuPart
    {
        public ZoomToolButton() : base(WorkbenchName.ZoomPart)
        {
        }

        public override void Execute()
        {
            //base.Execute();
            EventAggregator.Publish(new MenuToolChangedMessage {ToolIndex = 2});
        }
    }
}